import request from '@/utils/request'

export function login(data) {
  return request.post('admin/login', data)
}

export function getInfo() {
  return request.post('admin/info')
}

export function logout() {
  return request.post('admin/logout')
}

export function getManagers() {
  return request.post('admin/get-managers')
}

export function saveManager(data) {
  return request.post('admin/save-manager', data)
}

export function deleteManager(id) {
  return request.post('admin/delete-manager', { id })
}
